/**
 * Generate code from /{{projectName}}-core/src/main/java/{{packageName}}/{{apis}}/dto/{{apiDtos@DEFAULT}}.java.hbs
 */
package cn.ibizlab.api.dto;

import java.util.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 接口[SysApiDTO]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("接口DTO")
public class SysApiDTO extends DTOBase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @JsonProperty("id")
    @JSONField(name = "id")
    @ApiModelProperty(value = "标识", position = 0)
    private String id;

    /**
     * 代码名
     */
    @JsonProperty("code_name")
    @JSONField(name = "code_name")
    @ApiModelProperty(value = "代码名", position = 1)
    private String codeName;

    /**
     * 显示名
     */
    @JsonProperty("tags")
    @JSONField(name = "tags")
    @ApiModelProperty(value = "显示名", position = 2)
    private String tags;

    /**
     * 基础路径
     */
    @JsonProperty("base_path")
    @JSONField(name = "base_path")
    @ApiModelProperty(value = "基础路径", position = 3)
    private String basePath;

    /**
     * 描述
     */
    @JsonProperty("description")
    @JSONField(name = "description")
    @ApiModelProperty(value = "描述", position = 4)
    private String description;

    /**
     * 接口方法
     */
    @JsonProperty("operations")
    @JSONField(name = "operations")
    @ApiModelProperty(value = "接口方法", position = 5)
    private List<SysApiOperationDTO> operations;


    /**
     * 设置 [代码名]
     */
    public SysApiDTO setCodeName(String codeName) {
        this.codeName = codeName;
        this.modify("code_name", codeName);
        return this;
    }

    /**
     * 设置 [显示名]
     */
    public SysApiDTO setTags(String tags) {
        this.tags = tags;
        this.modify("tags", tags);
        return this;
    }

    /**
     * 设置 [基础路径]
     */
    public SysApiDTO setBasePath(String basePath) {
        this.basePath = basePath;
        this.modify("base_path", basePath);
        return this;
    }

    /**
     * 设置 [描述]
     */
    public SysApiDTO setDescription(String description) {
        this.description = description;
        this.modify("description", description);
        return this;
    }

    /**
     * 设置 [接口方法]
     */
    public SysApiDTO setOperations(List<SysApiOperationDTO> operations) {
        this.operations = operations;
        this.modify("operations", operations);
        return this;
    }


}
